import React from 'react'
import { useLocation } from 'react-router-dom'
import qs from 'qs'
export default function News() {

  const Location = useLocation()

 const {user,id} = qs.parse(Location.search.split('?')[1])

  return (
    <div>
      <p>News</p>
      <span>您的用户名是:{user} 您的id是:{id}</span>
    </div>
  )
}
